package helpers;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

public class ImageHelper {
	public static String getSrcFirstImage(String content) {
		String src = "";
		
		try {
			Document doc = Jsoup.parse(content);
			src = doc.select("img:eq(0)").attr("src");
			
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		return src;
	}
}
